package tech.aistar.day01.ioc;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/5/6 1:43 下午
 */
public class UserInfo {
    private int id;

    private String info;

    public UserInfo() {
        System.out.println("UserInfo..");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        System.out.println("setId..");
        this.id = id;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        System.out.println("setInfo..");
        this.info = info;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserInfo{");
        sb.append("id=").append(id);
        sb.append(", info='").append(info).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
